package org.framework.server.memory;

import javax.annotation.PostConstruct;

import org.framework.core.Configation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MemoryListener {
	
	@Autowired
	private Memory memory;
	
	@PostConstruct
	public void init() {
		Configation.init();
		memory.init();
	}

	public Memory getMemory() {
		return memory;
	}

	public void setMemory(Memory memory) {
		this.memory = memory;
	}
}
